package org.footito.android.dialog;

import org.footito.android.R;
import org.footito.android.adapter.CommentsBaseAdapter;
import org.footito.android.data.TeamStatus;

import android.app.Dialog;
import android.content.Context;
import android.widget.ListView;

public class CommentsDialog extends Dialog {

	private ListView list;

	public CommentsDialog(Context context, TeamStatus status) {
		super(context);
		setContentView(R.layout.coms);
		list = (ListView) findViewById(R.id.list);

		CommentsBaseAdapter tlba = new CommentsBaseAdapter(context, status.getComments());
		list.setAdapter(tlba);
		this.setTitle("Commentaires");
	}

}
